<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3" xmlns:head="http://www.w3.org/1999/html">
<head th:include="public/public_css::public_css ('用户管理')" />
<link rel="stylesheet" type="text/css" th:href="@{/plugin/webuploader/webuploader.css}" media="all"/>
<body style="background-color: #f2f2f2;">
<div class="layui-fluid larry-wrapper">
    <div class="layui-card">
        <div class="layui-card-header">产品导入</div>
        <div class="layui-card-body">
            <button class="layui-btn layui-btn-normal">下载模板</button>
            <button class="layui-btn" id="picker">开始导入</button>
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-header">库位导入</div>
        <div class="layui-card-body">
            <button class="layui-btn layui-btn-normal">下载模板</button>
            <button class="layui-btn">开始导入</button>
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-header">出库单导入</div>
        <div class="layui-card-body">
            <button class="layui-btn layui-btn-normal">下载模板</button>
            <button class="layui-btn">开始导入</button>
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-header">采购订单导入</div>
        <div class="layui-card-body">
            <button class="layui-btn layui-btn-normal">下载模板</button>
            <button class="layui-btn">开始导入</button>
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-header">入库单导入</div>
        <div class="layui-card-body">
            <button class="layui-btn layui-btn-normal">下载模板</button>
            <button class="layui-btn">开始导入</button>
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-header">库存导入</div>
        <div class="layui-card-body">
            <button class="layui-btn layui-btn-normal">下载模板</button>
            <button class="layui-btn">开始导入</button>
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-header">客户档案导入</div>
        <div class="layui-card-body">
            <button class="layui-btn layui-btn-normal">下载模板</button>
            <button class="layui-btn">开始导入</button>
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-header">供应商导入</div>
        <div class="layui-card-body">
            <button class="layui-btn layui-btn-normal">下载模板</button>
            <button class="layui-btn">开始导入</button>
        </div>
    </div>

</div>
</body>


<div th:include="public/public_js::public_js"></div>
<script type="application/javascript" th:src="@{/plugin/webuploader/webuploader.js}"></script>
<script>
    var uploader;
    $(function(){
        uploader = WebUploader.create({
            // 选完文件后，是否自动上传。
            auto: true,

            // swf文件路径
            swf: './plugin/webuploader/Uploader.swf',
            formData: {
                // fpath: fpath
            },
            // 文件接收服务端。
            server: 'importFile',

            // 选择文件的按钮。可选。
            // 内部根据当前运行是创建，可能是input元素，也可能是flash.
            pick: '#picker',

            // 只允许选择图片文件。
              accept: {
                 title: 'excel',
                 extensions: 'xls,xlsx',
                 mimeTypes: 'application/excel,application/vnd.ms-excel,application/x-excel,application/x-msexcel'
             },
            method:'POST'
        });
    });
</script>

</html>